import config from "@/config";
import http from "@/utils/request";

export default {
	add: {
		url: `${config.API_URL}/DescribeDomain/save`,
		name: "新增",
		post: async function (data) {
			return await http.post(this.url, data);
		},
	},
	update: {
		url: `${config.API_URL}/DescribeDomain/update`,
		name: "编辑",
		post: async function (data) {
			return await http.post(this.url, data);
		},
	},
	remove: {
		url: `${config.API_URL}/DescribeDomain/remove`,
		name: "删除",
		post: async function (data) {
			return await http.post(this.url, data);
		},
	},
	disable: {
		url: `${config.API_URL}/DescribeDomain/disable`,
		name: "禁用",
		post: async function (data) {
			return await http.post(this.url, data);
		},
	},
	page: {
		url: `${config.API_URL}/DescribeDomain/list/page`,
		name: "分页列表",
		get: async function (data) {
			return await http.post(this.url, data);
		},
	},
	recordPage: {
		url: `${config.API_URL}/DescribeDomain/record/list/page`,
		name: "分页列表",
		get: async function (data) {
			return await http.post(this.url, data);
		},
	},
};
